CC = gcc   
CXX = g++   
CFLAGS = -Wall -pipe -D_DEBUG -DDEBUG -g -O0   
LDFLAGS = -lstdc++   
RM = /bin/rm -f   
MODULE_INC = -I../curl-7.21.3/include -I../boost_1_45_0 -I./   
MODULE_LIB = -L../boost_1_45_0/stage/lib   
CFLAGS  += $(MODULE_INC)   
LDFLAGS += $(MODULE_LIB)   
LIBOBJS = sender.o recver.o   
TARGET = sender recver   
all: $(TARGET)   

sender: sender.o   
	$(CXX) -o $@ $^ $(LDFLAGS)   

recver: recver.o   
	$(CXX) -o $@ $^ $(LDFLAGS)   


%.o : %.c   
	$(CC) $(CFLAGS) -c $^ -o $@    

%.o : %.cpp   
	$(CC) $(CFLAGS) -c $^ -o $@    

clean:
	rm -f $(TARGET)
	rm -f *.o   

